package org.feign.client;



import org.feign.client.fallback.OrderFeignFallback;
import org.feign.pojo.Order;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(value = "order-service",fallback = OrderFeignFallback.class)
public interface OrderFeign {
    @GetMapping("/order/findOrderByUserId/{username}")
    public List<Order> findOrderByUserId(@PathVariable("username") String username);
}
